* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    color: #333;
    margin-bottom: 10px;
}

.upload-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-input {
    width: 100%;
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 15px;
}

.file-input:hover {
    border-color: #007bff;
}

.buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.panel-title {
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.image-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-item {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    height: 400px;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    height: 400px;
    overflow-y: auto;
    display: flex;
    align-items: center;
}

.result-item.processing {
    background: #e3f2fd;
    border-color: #2196f3;
}

.result-item.completed {
    background: #e8f5e8;
    border-color: #4caf50;
}

.result-item.error {
    background: #ffebee;
    border-color: #f44336;
}

.loading {
    text-align: center;
    color: #666;
    width: 100%;
}

.empty-placeholder {
    text-align: center;
    color: #999;
    padding: 40px;
}

@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .buttons {
        flex-direction: column;
    }
}
